package com.example.user1.domain.convert;

import com.example.user1.infra.mapper.entity.BaseEntity;
import com.example.user1.infra.model.BaseModel;
import net.sf.jsqlparser.Model;

import java.util.List;

public abstract class BaseConvert<M extends BaseModel, E extends BaseEntity> {
    public abstract M toDomain(E e);

    public abstract E toEntity(M m);

    public abstract List<M> toDomains(List<E> e);

    public abstract List<E> toEntitys(List<M> e);

//    <T extends Collection<E>, R extends Collection<M>> R toDomains(T e);
//
//    <T extends Collection<E>, R extends Collection<M>> T toEntitys(R m);
}
